import 'package:shortmovieapp/http/core/HttpRequest.dart';

class HttpResponse<T>  {
  String? data;
  HttpRequest? request;
  int code;
  String message;
  dynamic extra;

  bool get suc => code == 200;

  HttpResponse({this.data, this.request,required this.code,required this.message,this.extra});

  @override
  String toString() {
    String res =  data.toString();;
    if(data is Map){
        res = data.toString();
    }
    return "code:$code,msg:$message,data:$res" ;
  }
}
